﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Zhp.Entity.Sys;
using Zhp.Model.Sys;

namespace Zhp.IService.Sys
{
    public interface ISysUserRoleService
    {
        Task<(List<UserRoleModel>, List<string>)> GetUserRole(UserRoleQuery query);
        Task<bool> Create(UserRoleCreate user);

        Task<(List<UserRoleByUserModel>, List<string>)> GetRoleUserByUser(UserIdQuery query);
        Task<bool> CreateByUser(UserRoleByUserCreate user);
        Task<List<long>> GetRoleIdByCurrentUser(long userId);
    }
}
